﻿<%@ Page Title="招聘管理" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="EA.aspx.cs" Inherits="EA" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head"></asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<script type="text/javascript">
    function con() {
        if (confirm('确定删除吗？')) {
            return true;
        }
        else {
            return false;
        }
    }
</script>
<asp:Button ID="btnInsert" runat="server" Text="新增招聘" onclick="btnInsert_Click" CssClass="btn btn-primary"  />
<hr />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="table-hover table-condensed tablewidth">
        <Columns>
            <asp:TemplateField HeaderText="职位">
            <ItemTemplate><asp:Label ID="Label1" runat="server" Text='<%# Bind("position") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="人数">
            <ItemTemplate><asp:Label ID="Label2" runat="server" Text='<%# Bind("number") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="薪水">
            <ItemTemplate><asp:Label ID="Label3" runat="server" Text='<%# Bind("salary") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
            <ItemTemplate>
            <a href='<%#String.Format("edita.aspx?ano={0}",Eval("ano")) %>' target="_self">
            详情
            </a>
            <asp:LinkButton ID="lbtndelete" runat="server" OnClientClick="return con();" CommandArgument='<%#Eval("ano") %>' OnClick="lbtndelete_Click">删除</asp:LinkButton>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#594B9C" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#33276A" />
    </asp:GridView>
</asp:Content>